<?php
/**
 * Created by PhpStorm.
 * User: User
 * Date: 2017/10/18
 * Time: 8:27
 */
class Circle
{
    /*private $radus;*/
    private $r;
    private $d='abc';
    public  function __construct($r)
    {
        $this->r=$r;
    }
    public function __clone(){
        $this->r=10;
    }
    public function __toString()
    {
        return 'circle.r='.$this->r;
    }
    public  function __call($methodname,$args){
        die("方法".$methodname."不存在");
    }
    public function getArea(){}
}
$c=new Circle(3);
$str=serialize($c);
echo $str;
$d=unserialize($str);
echo "<br/>";
var_dump($d);
/*$c->r=5*cricle::getPi();*/
/*$d=$c;
echo  $c;
print $c;
$e=$c->getArea();
/*$cc=clone $c;
echo $d;
/*var_dump($c);
var_dump($d);
var_dump($cc);*/